package com.spring01.test;

public class DayDemo {
    public static final int MONDAY =1;
    public static final int TUESDAY=2;
    public static final int WEDNESDAY=3;
    public static final int THURSDAY=4;
    public static final int FRIDAY=5;
    public static final int SATURDAY=6;
    public static final int SUNDAY=7;
}
class TestDayDemo{
    public static void main(String[] args) {
        int day = DayDemo.MONDAY;
        switch (day){
            case DayDemo.MONDAY:
                System.out.println("星期一");
                break;
            case DayDemo.TUESDAY:
                System.out.println("星期二");
                break;
            case DayDemo.WEDNESDAY:
                System.out.println("星期三");
                break;
            case DayDemo.THURSDAY:
                System.out.println("星期四");
                break;
            case DayDemo.FRIDAY:
                System.out.println("星期五");
                break;
            case DayDemo.SATURDAY:
                System.out.println("星期六");
                break;
            case DayDemo.SUNDAY:
                System.out.println("星期天");
                break;
        }
    }
}